//
//  DataSaveAndGet.h
//  CarOwnerCarefree
//
//  Created by zp on 13-7-15.
//  Copyright (c) 2013年 zp. All rights reserved.
//

#import <Foundation/Foundation.h>

//存储信息
//首次启动应用版本
#define APPLICATION_VERSION     @"APPLICATION_VERSION"

#define USERID                  @"userId"

#define USERINFO                @"userInfo"

#define CHANNEL_ID              @"channel_id"

#define LASTTIMESOFREAD         @"last_times_of_read"

#define PUSH_NOTIFICATION       @"push_notification"

#define SESSIONID               @"sessionId"

#define EASEMOB_USERNAME        @"easemob_username"

#define EASEMOB_PASSWORD        @"easemob_password"

@interface DataSaveAndGet : NSObject
#pragma mark - 信息存储 method
#pragma mark -
/**
 *  将信息存储到NSUserDefaults
 *
 *  @param value 将要存储的值
 *  @param type  将要存储的值的类型
 *  @param key   对应的key值
 */
+ (void)saveValue:(id)value withType:(NSString *)type withKey:(NSString *)key;

#pragma mark - 获取信息 method
#pragma mark -
/**
 *  从NSUserDefaults获取信息
 *
 *  @param type 获取信息的值的类型
 *  @param key  信息对应的key
 *
 *  @return 将要获取的信息
 */
+ (id)getValueWithType:(NSString *)type withKey:(NSString *)key;



@end
